<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  //  测试请求
  created () {
    this.$http.getListDetail()
      .then(res => console.log('Detail: ' + res))
    this.$http.getList()
      .then(res => console.log('list: ' + res))
  }
}
</script>
